import React from 'react';
import { connect } from 'dva';
import BaseInfo from './TabWrap/BaseInfo';
class TabContent extends React.Component {
  constructor() {
    super();
    this.state = {
      pageType: '',
    };
  }
  componentDidMount() {
    this.setState({
      pageType: this.props.pageType,
    });
  }

  render() {
    const _this = this;
    const { tabClick } = this.state;
    const { formDatas } = this.props;
    return (
      <div style={{ position: 'relative' }}>
        {/* 内容 */}
        <div>
          <BaseInfo
            tabClick={tabClick}
            widthSet={this.props.widthSet}
            mainThis={this.props.mainThis}
            productId={this.props.productId}
            modeType={this.props.modeType}
            pageType={this.props.pageType}
            formDatas={formDatas}
            parentThis={_this}
          ></BaseInfo>
        </div>
      </div>
    );
  }
}
export default connect(({ productManageM }) => ({ productManageM }))(TabContent);
